package com.itheima;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestDemo {
    public static void main(String[] args) {
        ApplicationContext a=new AnnotationConfigApplicationContext(abc.class);
        Demo02 demo02 =  a.getBean(Demo02Impl.class);
        demo02.sleep();
    }
}
